<!DOCTYPE html>
<html>
  <head>
    <title>Cathode Retro Docs</title>
    <link href="../../docs.css" rel="stylesheet">
    <meta name="viewport" content="width=device-width, initial-scale=1.0" charset="UTF-8">
    <script src="../../main-scripts.js"></script>
  </head>
  <body onload="OnLoad()" class="page">
    <header class="header"><button id="sidebar-button"></button></header>
    <div id="sidebar-container" class="sidebar-container"><iframe class="sidebar-frame" src="../../sidebar.html?page=shader-reference-util-basic-vertex-shader"></iframe></div>
    <div id="content-outer" class="content-outer">
      <main>
        <h1>util-basic-vertex-shader</h1>
        <p>
          Contains a simple vertex shader that takes a vertex with a single <code>float2</code>
          value in the range <code>[0..1]</code> (where <code>(0, 0)</code> is the upper-left coordinate of the quad) 
          and outputs a position value with <code>x, y</code> 
          in range <code>[-1..1]</code>, a <code>z</code> value of <code>0</code>, and a <code>w</code>
          value of <code>1</code>, as well as a texture coordinate value in the range <code>[0..1]</code>.
        <p>
        <p>
          The way this shader is specified is platform-specific, and so the best reference is
          to actually <a href="https://github.com/DeadlyRedCube/Cathode-Retro/blob/main/Shaders/cathode-retro-util-basic-vertex-shader.hlsl" target="_blank">refer to the shader itself</a>.
        </p>
        <p>
          This can be used as the vertex shader for every Cathode Retro pixel/fragment shader.
        </p>
      </main>
    </div>
  </body>
</html>